<?php if (!defined('THINK_PATH')) exit(); if(is_array($all)): foreach($all as $k=>$all): ?><div class="card user_order_card">
  <div class="card-header"><span><span class="iconfont icon-huiyuan1"></span> <?php echo ($all['sponsor']); ?></span>
  <a>
  	 <?php if($all['order_status'] == 1): ?>待付款
  	 <?php elseif($all['order_status'] == 2): ?>待参与
  	 <?php elseif($all['order_status'] == 3): ?>已完成<?php endif; ?>
  </a>
  </div>
  <div class="card-content">
  <a href="<?php echo U('orderDetail',array('order_id'=>$all['id']));?>">
    <div class="list-block media-list">
      <ul>
        <li class="item-content">
          <div class="item-media">
            <img src="<?php echo ($all['activity_img']); ?>" style="width:100px;" />
          </div>
          <div class="item-inner">
            <div class="item-title-row">
              <div class="item-title"><?php echo ($all['activity_name']); ?></div>
            </div>
            <p style="font-size:12px;margin:0 0;" class="color-gray"><?php echo ($all['area']); ?>&nbsp;&nbsp;&nbsp;<?php echo ($all['signup_number']); ?>人已报名</p>
            <p style="font-size:12px;margin:0 0;" class="color-gray"><?php echo (date("Y-m-d",$all['start_time'])); ?> 至 <?php echo (date("Y-m-d",$all['end_time'])); ?></p>
          </div>
        </li>
      </ul>
    </div>
   </a> 
  </div>
  <div class="card-footer"><span>￥<font><?php echo ($all['amount']); ?></font></span>
  <span>
  <?php if($all['order_status'] == 1): ?><form action="<?php echo U('Wxpay/js_api_call');?>" method="post" style="display: inline-block;">
  	<input type="hidden" name="order_sn" value="<?php echo ($all['order_sn']); ?>" />	
  	<button type="submit"  style="display: inline-block;" class="button button-fill" >去付款</button>
  </form>
  <a style="display: inline-block;" href="<?php echo U('cancelOrder',array('order_id'=>$all['id']));?>" class="button button-fill" >取消订单</a>
  <?php elseif($all['order_status'] == 2): ?>
  <a style="display: inline-block;" href="<?php echo U('electronics',array('order_id'=>$all['id']));?>" class="button button-fill" >查看电子票</a>
  <?php elseif($all['order_status'] == 3): ?>
  <a style="display: inline-block;" href="<?php echo U('Users/orderDetail',array('order_id'=>$all['id']));?>" class="button button-fill">已完成</a><?php endif; ?>
  </span>
  </div>
</div><?php endforeach; endif; ?>